package com.zzyl.nursing.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel("预约信息DTO")
public class ReservationDto {


    /**
     * 预约人手机号
     */
    @ApiModelProperty(value = "预约人手机号",required = true)
    private String mobile;

    /**
     * 预约人姓名
     */
    @ApiModelProperty(value = "预约人姓名",required = true)
    private String name;

    /**
     * 预约时间
     */
    @ApiModelProperty(value = "预约时间",required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime time;

    /**
     * 预约类型：0参观类型 1探访类型
     */
    @ApiModelProperty(value = "预约类型",required = true)
    private Integer type;

    /**
     * 老人姓名
     */
    @ApiModelProperty(value = "老人姓名",required = true)
    private String visitor;
}
